package org.dromara.web.system.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.web.system.domain.AppProcurementPlan;

/**
 * 采购计划业务对象 app_procurement_plan
 *
 * @author Lion Li
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppProcurementPlan.class, reverseConvertGenerate = false)
public class AppProcurementPlanBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 采购计划编号
     */
    private String planCode;

    /**
     * 计划类型 0年度计划 1季度计划 2月度计划 3日计划
     */
    private Long planType;

    /**
     * 季度数
     */
    @NotNull(message = "季度数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long quarterNum;

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 审核状态 0审核中 1审核成功 2审核失败
     */
    private Long auditStatus;

    /**
     * 失败原因
     */
    @NotBlank(message = "失败原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String failReason;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
